﻿using BCCommon.Extensions;
using BCCommon.TMS.FreightEnums;
using System;

namespace BCDto.TMS.FreightContact
{
    /// <summary>
    /// 货运常用联系人
    /// </summary>
    public class FreightContactDto
    {
        /// <summary>
        /// 货运常用联系人Id
        /// </summary>
        public long FreightContactId { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public long UserId { get; set; }
        /// <summary>
        /// 联系人姓名首字母
        /// </summary>
        public string ContactInitials { get; set; }
        /// <summary>
        /// 联系人姓名
        /// </summary>
        public string ContactName { get; set; }
        /// <summary>
        /// 联系人电话
        /// </summary>
        public string ContactPhone { get; set; }
        /// <summary>
        /// 联系人类型
        /// </summary>
        public FreightContactType ContactType { get; set; }
        /// <summary>
        /// 联系人类型名称
        /// </summary>
        public string ContactTypeStr { get { return ContactType.GetDisplayString(); }  }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
